﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="ListPromotion.aspx.cs" Inherits="ADC.Web.Admin.ListPromotion" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderData" runat="server">
<div class="content-outer">
        <div class="content-inner">
            <div class="title_border_nopadd">
                <h1>
                    Danh mục khuyến mại</h1>
                <div class="dash-sub-menu">
                </div>
            </div>
            <asp:GridView ID="GridViewConsulting" runat="server" EnableModelValidation="True"
                HeaderStyle-CssClass="gridview-header" CssClass="gridview" PagerStyle-CssClass="pgr"
                AlternatingRowStyle-CssClass="alt" OnRowEditing="GridViewConsulting_RowEditing"
                OnRowDeleting="GridViewConsulting_RowDeleting">
                <Columns>
                    <asp:TemplateField Visible="false">
                        <ItemTemplate>
                            <asp:Label Visible="false" ID="lblConsultingID" runat="server" Text='<%#Eval("PromotionID") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Tiêu đề" ItemStyle-CssClass="gridview-item">
                        <ItemTemplate>
                            <label>
                                <%#Eval("Title") %>
                            </label>
                        </ItemTemplate>
                        <ItemStyle Width="350px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Ngày sửa cuối" ItemStyle-CssClass="gridview-item">
                        <ItemTemplate>
                            <label>
                                <%#Eval("ModifiedDate", "{0:dd MMM yyyy hh:mm}")%>
                            </label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Action">
                        <ItemTemplate>
                            <asp:ImageButton CommandName="Edit" ImageUrl="~/Admin/images/user_edit.png" ID="btnEdit"
                                runat="server" />
                            <asp:ImageButton CommandName="Delete" ImageUrl="~/Admin/images/trash.png" ID="btnDelete"
                                runat="server" OnClientClick="return confirm('Bạn có chắc là muốn xóa?');" />
                        </ItemTemplate>
                        <ItemStyle Width="100px" />
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <div class="customize">
                <ul>
                    <li><span>
                        <asp:LinkButton CssClass="button" ID="LinkButtonAddNew" PostBackUrl="~/Admin/ManagePromotion.aspx?Mode=0"
                            runat="server">Thêm mới</asp:LinkButton>
                    </span></li>
                </ul>
            </div>
        </div>
    </div>
    <br style="clear: left;" />
</asp:Content>
